package com.atguigu.gmall.order.api;

import com.atguigu.gmall.common.bean.ResponseVo;
import com.atguigu.gmall.order.vo.OrderSubmitVO;
import com.atguigu.gmall.order.vo.PayOrderVO;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

public interface GmallOmsApi {
    @ApiOperation("根据orderToken查询订单支付页数据")
    @GetMapping("oms/order/pay/{orderToken}")
    public ResponseVo<PayOrderVO> queryPayOrderVOByOrderToken(@PathVariable("orderToken")
                                                                      String orderToken);
    @PostMapping("oms/order")
    @ApiOperation("创建订单")
    public ResponseVo<Long> save(@RequestBody OrderSubmitVO orderSubmitVO);
}
